import request from '../../utils/request';
//获取数据
export const enerGet = () => {
    return request.get("classes/EnergyData")}
//获取数据-用于查询
export const enGet = (works:string,type:string) => {
    return request.get("classes/EnergyData",{
        params:{
            where:{
                works,
                type,
            }
        }
    });
  };
  //获取页码
  export const textGet = (page=1) => {
    let skip=(page-1)*4
    return request.get("classes/EnergyData",{
        params:{
            limit:4,
            skip,
            count:1
        }
    })}